package org.chartsy.annotation.fibonacciretracement;
import java.awt.Color;
import java.awt.Stroke;
import org.chartsy.main.chart.AbstractPropertyListener;
import org.chartsy.main.utils.SerialVersion;
import org.chartsy.main.utils.StrokeGenerator;
/**
*
* @author viorel.gheba
*/
public class AnnotationProperties
extends AbstractPropertyListener
{
private static final long serialVersionUID = SerialVersion.APPVERSION;
public static final Color COLOR = Color.RED;
public static final int STROKE_INDEX = 0;
private Color color = COLOR;
private int strokeIndex = STROKE_INDEX;
public AnnotationProperties() {}
public Color getColor() { return color; }
public void setColor(Color c) { color = c; }
public int getStrokeIndex() { return strokeIndex; }
public void setStrokeIndex(int i) { strokeIndex = i; }
public Stroke getStroke() { return StrokeGenerator.getStroke(strokeIndex); }
public void setStroke(Stroke s) { strokeIndex = StrokeGenerator.getStrokeIndex(s); }
}